<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<!--header end-->
<div id="content" class="mt8">
    <div class="w318 fl">
        <div class="borderBlue">
            <?php $cid = 9?>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1aa74998908e466ad8ee199f37349e21&action=lists&catid=%24cid&num=10&order=updatetime+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$cid,'order'=>'updatetime DESC','limit'=>'10',));}?>
            <div class="title">
                <a href="<?php echo $CATE[$cid]['url'];?>" title="<?php echo $CATE[$cid]['catname'];?>">更多&gt;&gt;</a>
                <span><?php echo $CATE[$cid]['catname'];?></span>
            </div>
            <div class="news_list_r_content">
                <div class="titleBottom" style="height:auto;">
                    <ul>
                        <?php $n=1; if(is_array($data)) foreach($data AS $c => $v) { ?>
                        <li>
                            <a href="<?php echo $v['url'];?>" title="<?php echo $v['title'];?>">
                                · <?php echo str_cut($v['title'],50, '');?>
                                <span><?php echo date('g:i',$v[inputtime])?></span>
                            </a>
                        </li>
                        <?php $n++;}unset($n); ?>
                    </ul>
                </div>
                <div class="clear"></div>
            </div>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php $cid = 12?>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1aa74998908e466ad8ee199f37349e21&action=lists&catid=%24cid&num=10&order=updatetime+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$cid,'order'=>'updatetime DESC','limit'=>'10',));}?>
            <div class="title">
                <a href="<?php echo $CATE[$cid]['url'];?>" title="<?php echo $CATE[$cid]['catname'];?>">更多&gt;&gt;</a>
                <span><?php echo $CATE[$cid]['catname'];?></span>
            </div>
            <div class="news_list_r_content">
                <div class="titleBottom" style="height:auto;">
                    <ul>
                        <?php $n=1; if(is_array($data)) foreach($data AS $c => $v) { ?>
                        <li>
                            <a href="<?php echo $v['url'];?>" title="<?php echo $v['title'];?>">
                                · <?php echo str_cut($v['title'],50, '');?>
                                <span><?php echo date('g:i',$v[inputtime])?></span>
                            </a>
                        </li>
                        <?php $n++;}unset($n); ?>
                    </ul>
                </div>
                <div class="clear"></div>
            </div>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </div>
        <div class="borderBlue mt8">
            <?php $cid = 11?>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1aa74998908e466ad8ee199f37349e21&action=lists&catid=%24cid&num=10&order=updatetime+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$cid,'order'=>'updatetime DESC','limit'=>'10',));}?>
            <div class="title">
                <a href="<?php echo $CATE[$cid]['url'];?>" title="<?php echo $CATE[$cid]['catname'];?>">更多&gt;&gt;</a>
                <span><?php echo $CATE[$cid]['catname'];?></span>
            </div>
            <div class="news_list_r_content">
                <div class="titleBottom" style="height:auto;">
                    <ul>
                        <?php $n=1; if(is_array($data)) foreach($data AS $c => $v) { ?>
                        <li>
                            <a href="<?php echo $v['url'];?>" title="<?php echo $v['title'];?>">
                                · <?php echo str_cut($v['title'],50, '');?>
                                <span><?php echo date('g:i',$v[inputtime])?></span>
                            </a>
                        </li>
                        <?php $n++;}unset($n); ?>
                    </ul>
                </div>
                <div class="clear"></div>
            </div>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </div>
    </div>
    <div class="w650 borderBlue fr">
        <div class="title title2"> <i class="fr">您当前位置：
                <a href="<?php echo APP_PATH;?>">首页</a>
                &gt;&gt; <?php echo catpos($catid);?></i> 
            <span><?php echo $CATE[$catid]['catname'];?></span>
        </div>
        <div class="content_page">
            <div class="show_des">
                <h3><?php echo $title;?></h3>
                <p>
                    发布时间：<?php $time = explode(' ', $inputtime); echo $time[1]; ?>     预览：
                    <span id="hits"><?php echo mt_rand(5000, 9999999)?></span>
                    次
                </p>
            </div>
            <div class="content_page_content"><?php echo $content;?></div>
            <div class="show_page">
                <span class="fl">
                    上一篇：
                    <a href="<?php echo $previous_page['url'];?>"><?php echo str_cut($previous_page[title], 55, '...');?></a>
                </span>
                <span class="fr">
                    下一篇：
                    <a href="<?php echo $next_page['url'];?>"><?php echo str_cut($next_page[title], 55, '...');?></a>
                </span>
            </div>
            <div class="title3">相关文章</div>
            <ul class="news_show_xiangguan">
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=475bc219822f831709c0197101cb1cd7&sql=SELECT+%2A+FROM+mg_hits+h+%2C+mg_news+n+where+h.hitsid%3DCONCAT%28%27c-1-%27%2C+n.id%29+and+n.catid%3D%24catid+ORDER+BY+h.weekviews+DESC&cache=3600&page=%24page&return=data&num=8\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$pagesize = 8;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$r = $get_db->sql_query("SELECT COUNT(*) as count FROM  mg_hits h , mg_news n where h.hitsid=CONCAT('c-1-', n.id) and n.catid=$catid ORDER BY h.weekviews DESC");$s = $get_db->fetch_next();$pages=pages($s['count'], $page, $pagesize, $urlrule);$r = $get_db->sql_query("SELECT * FROM mg_hits h , mg_news n where h.hitsid=CONCAT('c-1-', n.id) and n.catid=$catid ORDER BY h.weekviews DESC LIMIT $offset,$pagesize");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
                <?php $n=1; if(is_array($data)) foreach($data AS $k => $val) { ?>
                <li>
                    <a href="<?php echo $val['url'];?>" target="_blank"><?php echo str_cut($val[title], 50, '...');?></a> <font color="#999"><?php echo date('g:i',$v[inputtime])?></font>
                </li>
                <?php $n++;}unset($n); ?>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <div class="clear"></div>
            </ul>
            <div class="clear"></div>
        </div>

    </div>
    <div class="clear"></div>
    <div style="height:10px;"></div>
    <div class="borderBlue">
        <?php $cid = 10?>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1aa74998908e466ad8ee199f37349e21&action=lists&catid=%24cid&num=10&order=updatetime+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>$cid,'order'=>'updatetime DESC','limit'=>'10',));}?>
        <div class="title">
            <a href="<?php echo $CATE[$cid]['url'];?>" title="<?php echo $CATE[$cid]['catname'];?>">更多&gt;&gt;</a>
            <span><?php echo $CATE[$cid]['catname'];?></span>
        </div>
        <div class="news_list_r_content">
            <div class="titleBottom" style="height:auto;">
                <ul class="titleBottom_w330_ul">
                    <?php $n=1; if(is_array($data)) foreach($data AS $c => $v) { ?>
                    <li>
                        <a href="<?php echo $v['url'];?>" title="<?php echo $v['title'];?>">
                            · <?php echo str_cut($v['title'],50, '');?>
                            <span><?php echo date('g:i',$v[inputtime])?></span>
                        </a>
                    </li>
                    <?php $n++;}unset($n); ?>
                </ul>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
    <div class="clear"></div>
</div>